package com.xbongbong.saas.domain.dao;

import com.xbongbong.saas.domain.entity.KnowledgeCatalogueEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @Author mingliang
 * @Description 知识库目录dao
 * @Date 2022/6/21 15:14
 **/
@Mapper
@Repository
public interface KnowledgeCatalogueDao {
    Integer insert(KnowledgeCatalogueEntity entity);

    void insertBatch(List<KnowledgeCatalogueEntity> list);

    KnowledgeCatalogueEntity getByKey(@Param("key") Long key, @Param("corpid") String corpid );

    Integer update(KnowledgeCatalogueEntity entity);

    List<KnowledgeCatalogueEntity> findEntitys(@Param("param") Map<String, Object> param);

    Integer getEntitysCount(@Param("param") Map<String, Object> param);

    Integer updateBatchSort(@Param("corpid") String corpid, @Param("list") List<KnowledgeCatalogueEntity> list);

    void deleteBatchByIds(@Param("param") Map<String, Object> param);
}